package cn.byapps.client2.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 * IndexController
 */
@RestController
public class IndexController {

    @Resource
    private RestTemplate restTemplate;
    @GetMapping("index")
    public Object index(){
        return restTemplate.getForEntity("http://eurekahi/index",Object.class);
    }
    
}